<?
$counter1 = count($arResult["ITEMS"]);
$left_block = round($counter1/2,0);
$right_block = $counter-$left_block;
$offices = $arResult["ITEMS"];
?>

<div class="contact">
	<div class="left_block">
		<? for($counter = 0; $counter<$left_block;$counter++):?>
            	<a href="<?=$offices[$counter]['DETAIL_PAGE_URL'];?>"><?=$offices[$counter]['NAME'];?></a>
        	<p>
            	<?=$offices[$counter]['PROPERTIES']["ADRESS"]["VALUE"];?>
                <? $phone_cpunter=0;?>
                <? foreach($offices[$counter]['PROPERTIES']["PHONE"]["VALUE"] as $key=>$phone):?>
                	<br />
                    <?=$phone;?> - <?=$offices[$counter]['PROPERTIES']["PHONE"]["DESCRIPTION"][$key];?>
                <? endforeach;?>
            </p>
        <? endfor;?>
	</div>
 
	<div class="right_block">
		<? for($counter = $left_block; $counter<$counter1;$counter++):?>
            	<a href="<?=$offices[$counter]['DETAIL_PAGE_URL'];?>"><?=$offices[$counter]['NAME'];?></a>
        	<p>
            	<?=$offices[$counter]['PROPERTIES']["ADRESS"]["VALUE"];?>
                <? foreach ($offices[$counter]['PROPERTIES']["PHONE"]["VALUE"] as $phone):?>
                	<br />
                    <?=$phone;?>
                <? endforeach;?>
            </p>
        <? endfor;?>
	</div>
	<div class="clr"></div>
</div>
  
  


<!---
<div class="maps"> <img src="/bitrix/templates/mic/images/img_html/map.jpg"  /> </div>
--->